package com.learn.demo.entity;

public class KeyBoard {
    public KeyBoard() {
        System.out.println("KeyBoard无参构造函数被调用，创建KeyBoard实例");
    }

    public KeyBoard(String vendor, String type, String color) {
        this.vendor = vendor;
        this.type = type;
        this.color = color;
    }

    /**
     * 供应商
     */
    private String vendor;

    /**
     * 类型
     */
    private String type;

    /**
     * 颜色
     */
    private String color;

    public String getVendor() {
        return vendor;
    }

    public void setVendor(String vendor) {
        this.vendor = vendor;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "KeyBoard{" +
                "vendor='" + vendor + '\'' +
                ", type='" + type + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
